home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1998 June
/
SGI Freeware 1998 June.iso
/
dist
/
fw_UMINNgopher.idb
/
usr
/
freeware
/
src
/
gopher_1.12
/
gopherd
/
ext.h.z
/
ext.h
Wrap
C/C++ Source or Header
|
1997-09-09
|
2KB
|
59 lines
/********************************************************************
* $Author: drich $
* $Revision: 1.1 $
* $Date: 1995/10/03 04:08:27 $
* $Source: /proj/freeware1.0/gopher1.12/src/gopherd/RCS/ext.h,v $
* $Status: $
*
* Paul Lindner, University of Minnesota CIS.
*
* Copyright 1991, 1992 by the Regents of the University of Minnesota
* see the file "Copyright" in the distribution for conditions of use.
*********************************************************************
* MODULE: ext.h
* Header file and access methods for filename extension routines
*********************************************************************
* Revision History:
* $Log: ext.h,v $
* Revision 1.1 1995/10/03 04:08:27 drich
* gopher 1.2 check-in
*
* Revision 1.1 1992/12/10 23:13:27 lindner
* gopher 1.1 release
*
*
*********************************************************************/
#ifndef EXT_H
#define EXT_H
#include "DAarray.h"
#include "STRstring.h"
#include "boolean.h"
/****************************************************
* A structure for mapping filenames to gopher types, and G+types
*/
struct Ext_struct {
char Objtype;
String *GplusType;
String *Prefix;
String *ext;
};
typedef struct Ext_struct Ext;
typedef DynArray ExtArray;
#define ExtgetEntry(a,b) (Ext *)(DAgetEntry((DynArray*)a,b))
#define ExtArrDestroy(a) (DAdestroy(a))
ExtArray *ExtArrayNew();
void ExtAdd(/*extarr, objtype, gplustype, prefix, fileext */);
void ExtGet(/*extarr, fileext, objtype, gplustype, prefix */);
boolean ExtProcessLine(/*extarr, inputline*/);
#endif /** EXT_H **/